#ifndef FITTING_H
#define FITTING_H

#include <QObject>
#include "tetraquad.h"

#include <gsl/gsl_linalg.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_permutation.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_multifit.h>
#include <gsl/gsl_eigen.h>

class Fitting : public QObject
{
    Q_OBJECT
public:
    explicit Fitting(QObject *parent = 0);

    void tetraQuadFitting(QVector<QVector3D> points,  TetraQuad* tet);
    void tetraQuadFitting(const QVector<QPair<QVector3D, QVector3D> >& p_n,  TetraQuad* tet);
};

#endif // FITTING_H
